package com.fadadianqi.logistics.inventory.model;

import com.fadadianqi.commons.BaseObject;

import java.util.Date;

/**
 * 库存记录条目
 *
 * @author aroot
 */
public class Item extends BaseObject {

    /**
     *
     */
    private static final long serialVersionUID = 3285709997923609229L;

    public static final String PROP_STATUS = "status";
    public static final String PROP_GOODS_ID = "goodsId";

    public static final int STATUS_SOLD = 1; // 已经售出
    public static final int STATUS_RETURN = 2; // 退回给供货商
    public static final int STATUS_NORMAL = 0; // 库存等待出售

    public static final String PROP_BATCH_ID = "batchId";

    public static final String PROP_BRAND_ID = "brandId";

    public static final String PROP_CATEGORY_ID = "categoryId";

    public static final String PROP_STOREHOUSE_ID = "storehouseId";

    private String goodsId;
    private Double purchase; // 进货价
    private Double discountRate; // 进货折扣比率
    private Double cost; // 成本
    private Double trade; // 批发价格
    private String memo; // 备注描述
    private Date addTime; //
    private Date lastUpdateTime;
    private Integer status = STATUS_NORMAL;
    private String batchId;
    private String brandId;
    private String categoryId;
    private String storehouseId;

    public Double getTrade() {
        return trade;
    }

    public void setTrade(Double trade) {
        this.trade = trade;
    }

    public String getStorehouseId() {
        return storehouseId;
    }

    public void setStorehouseId(String storehouseId) {
        this.storehouseId = storehouseId;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getBatchId() {
        return batchId;
    }

    public void setBatchId(String batchId) {
        this.batchId = batchId;
    }

    public Double getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(Double discountRate) {
        this.discountRate = discountRate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Double getPurchase() {
        return purchase;
    }

    public void setPurchase(Double purchase) {
        this.purchase = purchase;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }
}
